includeTargets << grailsScript("_GrailsPackage" )
	
ant.taskdef(name:"undeploy",classname:"org.apache.catalina.ant.UndeployTask")

target(main: "Undeploys the Grails application to Tomcat") {
    depends(createConfig, configureServerContextPath)

    undeploy(
		   url:config.deploy.url,
		   path:serverContextPath,
		   username:config.deploy.user,
		   password:config.deploy.passwd)
}
setDefaultTarget(main)
